import request from '/@/utils/request';


export function getEmailCompanyList(query:Object) {
    return request({
        url: '/api/v1/system/emailinfos/list',
        method: 'get',
        params:query
    })
}


export function getEmailCompany(data:any) {
    return request({
        url: '/api/v1/system/emailinfos/get',
        method: 'get',
        params:data,
    })
}

export function addEmailCompanyList(data:any) {
    return request({
        url: '/api/v1/system/emailinfos/add',
        method: 'post',
        data:data,
    })
}

export function editEmailCompanyList(data:any) {
    return request({
        url: '/api/v1/system/emailinfos/edit',
        method: 'post',
        data:data,
    })
}
